
<div class="entry">
	<div id="entryheadline">
		<%# There are a few controller actions that render this template (i.e. not just index action will render index template.  In those cases, they set a message. )%>
		<h1><%= @message %></h1>
	</div>
	<ul>
		<% if @message == "Viewing All Articles" || @controller.action_name == 'filter' || @controller.action_name == 'search' %>
			<%= render(:partial => 'article_list_item', :collection => @articles, :as => :article)%>
		<% end %>
		<% if @message == "Viewing Article Details" %>
			<%= render(:partial => 'detail_view', :object => @article)%>
		<% end %>
		<% if @message == "Viewing User Profile" %>
			<%= render(:partial => 'shared/user_profile', :object => @user)%>
		<% end %>
		<% if @message = "Viewing All Orders" %>
			<%= render(:partial => 'shared/view_orders', :object => @user, :collection => @orders, :as => :order)%>
		<% end %>
	</ul>

</div> <!-- end div.entry -->